projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c71d8
)
(report_file_error): Use strerror instead of sys_errlist.
author
Roland McGrath
<roland@gnu.org>
Sat, 8 Jan 1994 22:55:04 +0000
(22:55 +0000)
committer
Roland McGrath
<roland@gnu.org>
Sat, 8 Jan 1994 22:55:04 +0000
(22:55 +0000)
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index f46ffef0ad95ca5f653bee94d450d5ec3dca4924..c462c27b97d0a1c7e8f8546a485a4fe9bc176aed 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-137,10
+137,7
@@
report_file_error (string, data)
{
Lisp_Object errstring;
- if (errno >= 0 && errno < sys_nerr)
- errstring = build_string (sys_errlist[errno]);
- else
- errstring = build_string ("undocumented error code");
+ errstring = build_string (strerror (errno));
/* System error messages are capitalized. Downcase the initial
unless it is followed by a slash. */